package enty;

import java.util.Date;
public class Student { 
	 private	 int	gradeId;
	 private	 String	address;
	 private	 String	loginPwd;
	 private	 String	phone;
	 private	 String	studentName="";
	 private	 String	sex;
	 private	 int	studentNo;
	 private	Date	bornDate;
	 private	 String	identityCard;
	 private	 String	email;
	 private Grade grade;

	public Grade getGrade() {
		return grade;
	}

	public void setGrade(Grade grade) {
		this.grade = grade;
	}

	public Student(){}
	public Student(int gradeId, String address, String loginPwd, String phone, String studentName, String sex, int studentNo, Date bornDate, String identityCard, String email) {
		this.gradeId = gradeId;
		this.address = address;
		this.loginPwd = loginPwd;
		this.phone = phone;
		this.studentName = studentName;
		this.sex = sex;
		this.studentNo = studentNo;
		this.bornDate = bornDate;
		this.identityCard = identityCard;
		this.email = email;
	}

	public int getGradeId() {
		return gradeId;
	}

	public void setGradeId(int gradeId) {
		this.gradeId = gradeId;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getLoginPwd() {
		return loginPwd;
	}

	public void setLoginPwd(String loginPwd) {
		this.loginPwd = loginPwd;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getStudentName() {
		return studentName;
	}

	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public int getStudentNo() {
		return studentNo;
	}

	public void setStudentNo(int studentNo) {
		this.studentNo = studentNo;
	}

	public Date getBornDate() {
		return bornDate;
	}

	public void setBornDate(Date bornDate) {
		this.bornDate = bornDate;
	}

	public String getIdentityCard() {
		return identityCard;
	}

	public void setIdentityCard(String identityCard) {
		this.identityCard = identityCard;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Override
	public String toString() {
		return "Student{" +
				"gradeId=" + gradeId +
				", address='" + address + '\'' +
				", loginPwd='" + loginPwd + '\'' +
				", phone='" + phone + '\'' +
				", studentName='" + studentName + '\'' +
				", sex='" + sex + '\'' +
				", studentNo=" + studentNo +
				", bornDate=" + bornDate +
				", identityCard='" + identityCard + '\'' +
				", email='" + email + '\'' +
				'}';
	}
}